package com.example.his.api.mis.controller.form.dept;

import lombok.Data;

import javax.validation.constraints.*;

@Data
public class UpdateDeptForm {
  
  @NotNull(message = "id不能为空")
  @Min(value = 1, message = "id不能小于1")
  private Integer id;
  
  @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]{2,20}$", message = "deptName格式错误")
  private String deptName;
  
  @Pattern(regexp = "^1[0-9]{10}$", message = "tel格式错误")
  private String tel;
  
  @Email
  private String email;
  
  @Pattern(regexp = "^[a-zA-Z0-9\\u4e00-\\u9fa5]{1,20}$", message = "desc格式错误")
  private String desc;
}
